import service from '@/utils/request'
// @Tags Protocol_management
// @Summary 创建协议管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Protocol_management true "创建协议管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /protocol_management/createProtocol_management [post]
export const createProtocol_management = (data) => {
  return service({
    url: '/protocol_management/createProtocol_management',
    method: 'post',
    data
  })
}

// @Tags Protocol_management
// @Summary 删除协议管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Protocol_management true "删除协议管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /protocol_management/deleteProtocol_management [delete]
export const deleteProtocol_management = (params) => {
  return service({
    url: '/protocol_management/deleteProtocol_management',
    method: 'delete',
    params
  })
}

// @Tags Protocol_management
// @Summary 批量删除协议管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除协议管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /protocol_management/deleteProtocol_management [delete]
export const deleteProtocol_managementByIds = (params) => {
  return service({
    url: '/protocol_management/deleteProtocol_managementByIds',
    method: 'delete',
    params
  })
}

// @Tags Protocol_management
// @Summary 更新协议管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Protocol_management true "更新协议管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /protocol_management/updateProtocol_management [put]
export const updateProtocol_management = (data) => {
  return service({
    url: '/protocol_management/updateProtocol_management',
    method: 'put',
    data
  })
}

// @Tags Protocol_management
// @Summary 用id查询协议管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Protocol_management true "用id查询协议管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /protocol_management/findProtocol_management [get]
export const findProtocol_management = (params) => {
  return service({
    url: '/protocol_management/findProtocol_management',
    method: 'get',
    params
  })
}

// @Tags Protocol_management
// @Summary 分页获取协议管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取协议管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /protocol_management/getProtocol_managementList [get]
export const getProtocol_managementList = (params) => {
  return service({
    url: '/protocol_management/getProtocol_managementList',
    method: 'get',
    params
  })
}

// @Tags Protocol_management
// @Summary 不需要鉴权的协议管理接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.Protocol_managementSearch true "分页获取协议管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /protocol_management/getProtocol_managementPublic [get]
export const getProtocol_managementPublic = () => {
  return service({
    url: '/protocol_management/getProtocol_managementPublic',
    method: 'get',
  })
}
